Optimal. Leaf size=132 \[ \frac {(d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(e f-d g) (f+g x)}-\frac {2 b e n \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g (e f-d g)}-\frac {2 b^2 e n^2 \text {Li}_2\left (-\frac {g (d+e x)}{e f-d g}\right )}{g (e f-d g)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 132, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {2444, 2441,
2440, 2438} \begin {gather*} -\frac {2 b^2 e n^2 \text {PolyLog}\left (2,-\frac {g (d+e x)}{e f-d g}\right )}{g (e f-d g)}-\frac {2 b e n \log \left (\frac {e (f+g x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g (e f-d g)}+\frac {(d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(f+g x) (e f-d g)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2438
Rule 2440
Rule 2441
Rule 2444
Rubi steps
\begin {align*} \int \frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(f+g x)^2} \, dx &=\frac {(d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(e f-d g) (f+g x)}-\frac {(2 b e n) \int \frac {a+b \log \left (c (d+e x)^n\right )}{f+g x} \, dx}{e f-d g}\\ &=\frac {(d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(e f-d g) (f+g x)}-\frac {2 b e n \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g (e f-d g)}+\frac {\left (2 b^2 e^2 n^2\right ) \int \frac {\log \left (\frac {e (f+g x)}{e f-d g}\right )}{d+e x} \, dx}{g (e f-d g)}\\ &=\frac {(d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(e f-d g) (f+g x)}-\frac {2 b e n \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g (e f-d g)}+\frac {\left (2 b^2 e n^2\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {g x}{e f-d g}\right )}{x} \, dx,x,d+e x\right )}{g (e f-d g)}\\ &=\frac {(d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(e f-d g) (f+g x)}-\frac {2 b e n \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g (e f-d g)}-\frac {2 b^2 e n^2 \text {Li}_2\left (-\frac {g (d+e x)}{e f-d g}\right )}{g (e f-d g)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 126, normalized size = 0.95 \begin {gather*} \frac {-\left (\left (a+b \log \left (c (d+e x)^n\right )\right ) \left (a g (d+e x)+b g (d+e x) \log \left (c (d+e x)^n\right )-2 b e n (f+g x) \log \left (\frac {e (f+g x)}{e f-d g}\right )\right )\right )+2 b^2 e n^2 (f+g x) \text {Li}_2\left (\frac {g (d+e x)}{-e f+d g}\right )}{g (-e f+d g) (f+g x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.40, size = 1092, normalized size = 8.27
method | result | size |
risch | \(\text {Expression too large to display}\) | \(1092\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b \log {\left (c \left (d + e x\right )^{n} \right )}\right )^{2}}{\left (f + g x\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (a+b\,\ln \left (c\,{\left (d+e\,x\right )}^n\right )\right )}^2}{{\left (f+g\,x\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________